import { Fragement, createVNode } from "../vnode";

export function renderSlots(slots, name, props) {
    const slot = slots[name];

    if (slot) {
        // function 
        if (typeof slot === "function") {
            return createVNode(Fragement, {}, slot(props))
        }
    }
}